package org.dromara.run.domain.bo;

import org.dromara.run.domain.Level;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 阳光跑等级业务对象 phy_run_level
 *
 * @author chl
 * @date 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Level.class, reverseConvertGenerate = false)
public class LevelBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long levelId;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 等级名称
     */
//    @NotBlank(message = "等级名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String levelName;

    /**
     * 公里数
     */
//    @NotNull(message = "公里数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal kilometers;


}
